package com.itheima.service.ums;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.core.R;
import com.itheima.pojo.ums.UmsResourceCategory;

import java.util.List;

public interface UmsResourceCategoryService extends IService<UmsResourceCategory> {
    /**
     * 添加后台资源分类
     * @param umsResourceCategory
     * @return
     */
    void create(UmsResourceCategory umsResourceCategory);

    /**
     * 根据ID删除后台资源
     * @param id
     * @return
     */
    void delete(Integer id);

    /**
     * 查询所有后台资源分类
     * @return
     */
    List<UmsResourceCategory> listAll();

    /**
     * 修改后台资源分类
     * @param umsResourceCategory
     * @return
     */
    boolean updateResource(UmsResourceCategory umsResourceCategory);
}
